package com.smt.modules.bus.service;

import com.baomidou.mybatisplus.service.IService;
import com.smt.modules.bus.entity.LocalRemoteEntity;
import com.smt.modules.bus.vo.request.ProjectSiReq;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;

/**
 * @author zhangyi
 * @date 2018/11/21 9:58
 */
public interface LocalRemoteService extends IService<LocalRemoteEntity> {

    /**
     * 文件本地存储
     *
     * @param file
     * @param userId
     * @return
     */
    String localSaveFile(MultipartFile file, Long userId,ProjectSiReq projectSiReq);

    /**
     * 文件远程存储
     *
     * @param file
     * @apiNote userId
     * @return
     */
    String remoteSaveFile(MultipartFile file,Long userId,ProjectSiReq projectSiReq);

    /**
     * 获取文件路径
     *
     * @param projectSiReq
     * @return
     */
    String getFileUrl(ProjectSiReq projectSiReq);
}
